home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Hello / Include / HelloFrm.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.6 KB  |  95 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                HelloFrm.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef HELLOFRM_H
  11. #define HELLOFRM_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWFRAME_H
  16. #include "FWFrame.h"
  17. #endif
  18.  
  19. //==============================================================================
  20. // Forward Declarations
  21. //==============================================================================
  22.  
  23. #if FW_LIB_EXPORT_PRAGMAS
  24. #pragma import on
  25. #endif
  26. class FW_CLASS_ATTR FW_CMenuEvent;
  27. #if FW_LIB_EXPORT_PRAGMAS
  28. #pragma import off
  29. #endif
  30.  
  31. class FW_CLASS_ATTR CHelloPart;
  32.  
  33. //==============================================================================
  34. // CHelloFrame
  35. //==============================================================================
  36.  
  37. class FW_CLASS_ATTR CHelloFrame : public FW_CFrame
  38. {
  39. //----------------------------------------------------------------------------------------
  40. //    Initialization/Destruction
  41. //
  42.   public:
  43.     CHelloFrame(Environment* ev, 
  44.                 ODFrame* odFrame, 
  45.                 FW_CPresentation* presentation, 
  46.                 CHelloPart* helloPart);
  47.  
  48.     virtual ~CHelloFrame();
  49.     
  50. //----------------------------------------------------------------------------------------
  51. //    Inherited API
  52. //
  53.     virtual ODDragResult CanAcceptDrop(Environment* ev, ODDragItemIterator* dragInfo);
  54.  
  55.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  56.                                       FW_CMenuBar* menuBar, 
  57.                                       FW_Boolean hasMenuFocus,
  58.                                       FW_Boolean isRoot);
  59.  
  60.     virtual FW_Boolean    DoMenu(Environment* ev,
  61.                                const FW_CMenuEvent& theMenuEvent);
  62.  
  63.     virtual FW_Boolean    DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  64.  
  65.     virtual void        Draw(Environment *ev, 
  66.                              ODFacet* odFacet, 
  67.                              ODShape* invalidShape);
  68.  
  69.     virtual void        FrameShapeChanged(Environment* ev);
  70.         // Make sure entire frame gets redrawn
  71.  
  72.     virtual FW_CDragCommand* NewDragCommand(Environment *ev, FW_CFrame* theFrame);
  73.     virtual FW_CDropCommand* NewDropCommand(Environment *ev,
  74.                                             FW_CFrame* frame,
  75.                                             ODDragItemIterator* dropInfo, 
  76.                                             ODFacet* odFacet, 
  77.                                             const FW_CPoint& dropPoint);
  78.  
  79.     virtual FW_CEditCommand* NewEditCommand(Environment* ev, ODCommandID commandID);
  80.  
  81. //----------------------------------------------------------------------------------------
  82. //    New API
  83. //
  84.   public:
  85.     FW_Boolean             DoAboutBox();
  86.  
  87. //----------------------------------------------------------------------------------------
  88. //    Data Members
  89. //
  90.   private:
  91.     CHelloPart*         fHelloPart;
  92. };
  93.  
  94. #endif
  95.